<UserControl x:Class="_videoConference.ctlMyPOD"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Name="myPOD"
    xmlns:local="clr-namespace:_videoConference"
    Loaded="ctlMyPOD_Loaded" Unloaded="ctlMyPOD_Unloaded"  PreviewMouseDown="ctlMyPOD_PreviewMouseDown" AllowDrop="True"
    Background="Transparent">

  <UserControl.Resources>
    <local:CIntToStringConverter x:Key="oIntToString" />
  </UserControl.Resources>
	
  <Grid>
      <Canvas Name="cnvPOD" Background="Transparent" Width="{Binding Width, ElementName=myPOD}" Height="{Binding Height, ElementName=myPOD}" PreviewMouseMove="cnvPOD_PreviewMouseMove" PreviewMouseDown="cnvPOD_PreviewMouseDown" PreviewMouseUp="cnvPOD_PreviewMouseUp" >
        

        <Canvas ClipToBounds="True" Margin="0,0,0,0" Height="23" Width="{Binding Width, ElementName=cnvPOD}" Name="cnvTitle"  MouseDown="cnvTitle_MouseDown" MouseUp="cnvTitle_MouseUp" >
          <Rectangle Stroke="#DFDFDF" Width="{Binding Width, ElementName=myPOD}" Height="50" Name="rctTitle">
            <Rectangle.Fill>
              
              <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                <GradientStop Color="#737373" Offset="0.51428571428571427"/>
                <GradientStop Color="#595959" Offset="0.11428571428571427"/>
                <LinearGradientBrush.RelativeTransform>
                  <RotateTransform Angle="90"></RotateTransform>
                </LinearGradientBrush.RelativeTransform>
              </LinearGradientBrush>
              
            
            </Rectangle.Fill>
          </Rectangle>
          <Frame Name="htmFrame"></Frame>
          <Label Name="lblTitle" Width="{Binding Width, ElementName=cnvTitle}" Height="24" Foreground="White"></Label>
          <Button ToolTip="Minimize" Canvas.Right="23" Canvas.Top="5" Height="15" Width="15" Name="btnMinimized" AllowDrop="False" Click="btnMinimized_Click" BorderThickness="0,0,0,0" Cursor="Arrow" Background="Transparent" Foreground="White" FontWeight="Bold" FontSize="13" BorderBrush="Transparent">
            <Image Source="Images\MN.gif"></Image>
          </Button>
          <Button ToolTip="Maximize" Canvas.Right="5" Canvas.Top="5" Height="15" Width="15" Name="btnMaximized" AllowDrop="False" Click="btnMaximized_Click" BorderThickness="0,0,0,0" Cursor="Arrow" Background="Transparent" Foreground="White" FontWeight="Bold" FontSize="13" BorderBrush="Transparent">
            <Image Source="Images\Mt.gif"></Image>
          </Button>
        </Canvas>
        <Canvas ClipToBounds="True" Margin="0,24,0,0" Height="{Binding ElementName=cnvPOD, Path=Height, Converter={StaticResource oIntToString}}" Width="{Binding Width, ElementName=cnvPOD}" Name="cnvBody" Background="Transparent" >
          <Rectangle Name="rctBody" Stroke="#DFDFDF" Fill="#FF595959" Height="{Binding Height, ElementName=cnvBody}" Width="{Binding Width, ElementName=cnvBody}" Margin="0,0,0,0" >
           
          </Rectangle>         

        </Canvas>
      </Canvas>
  </Grid>

</UserControl>
